package com.dtz.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.dtz.entities.CommonResult;

@FeignClient(name = "cloud-payment-service")
public interface FeignService {
	
	@GetMapping(value = "/payment/get/{id}")
    public CommonResult getPaymentById(@PathVariable("id") Long id);
	
	/**
	 * feign超时demo，默认等待1s
	 * @return
	 */
	@GetMapping(value = "/payment/feign/timeout")
    public String paymentFeignTimeout();
}
